#pragma once
#pragma comment(lib,"vfw32.lib")
#include "vfw.h"
#include<afxmt.h>
#include<afxole.h>
#include "Encoder/libr263.h"
#include "Decoder/tmndec.h"
#include "resource.h"

class CVideoCapture
{
public:
	CVideoCapture(void);
	~CVideoCapture(void);
	void SetDlg(CDialog *pDlg);
	bool Initialize();
	bool SetCapturePare();
	void Destory();
	static LRESULT CALLBACK VideoStreamCallbackProc(HWND hWnd, LPVIDEOHDR lpVHdr);

	bool StartCapture();

private:
	HWND m_capWnd;
	
	CDialog *pDlg;
public:
	BITMAPINFO m_bmp;
};

